<div style="text-align:left;"><font color='green'>&nbsp;&nbsp;&nbsp;HOME > Photo > Liste</font></div>
<table border="1" width="960" align="center">
<tr>
<?php 
$i=0;
$baseAddr = $this->baseUrl;
//var_dump($this->data);
foreach ($this->data as $key=>$value) {
	$i = $i+1;
	$urldetail = 'detail/id/'.$key;
	$urlActive1 = 'active/statut/1/id/'.$key;
	$urlActive2 = 'active/statut/2/id/'.$key;
	$urlActive3 = 'active/statut/3/id/'.$key;
	$urlStaut = explode('|', $value);

	echo '<td align=center><br/><a href='.$urldetail.'><img src='.$urlStaut[0].' height=140 weight=60></img></a><br/><br/>';
	
	if($urlStaut[1] == "")
	{
		echo '<a href='.$urlActive1.'><img src="../../img/ok.gif" width=20 height=20 /></a> &nbsp;';
		echo '<a href='.$urlActive2.'><img src="../../img/ok_no.gif" width=20 height=20 /></a> &nbsp;';
		echo '<a href='.$urlActive3.'><img src="../../img/no.gif" width=20 height=20 /></a>';
	}
	else
	{
		echo $urlStaut[1];
	}
	
	echo '</td>';
	
	if($i % 4 == 0)
	{
		echo '</tr><tr>';
	}
}

?>

</table>
